import 'dart:math';

class StringUtil {
  //随机字符串种子串
  static final List<String> _kRandomTextSeed = "*ABCDEFGHIJKLMNOPooQRSTUVWXYZ0abcdefghijklmnopqrstuvxxyz123456789@#%_^&hjk*".split("");

  //随机字符串
  static String randomString({int length = 12}) {
    String result = "";
    Random random = Random();
    for (int i=0; i<length; i++) {
      result += _kRandomTextSeed[random.nextInt(_kRandomTextSeed.length)];
    }
    return result;
  }
}